﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:properties="clr-namespace:Microsoft.EnhancedReminders.Properties"
    xmlns:control="clr-namespace:Microsoft.EnhancedReminders.OutlookAddIn;assembly=" 
    x:Class="Microsoft.EnhancedReminders.OutlookAddIn.ReadOnlyChannelControlWindow" 
    ResizeMode="NoResize" SizeToContent="WidthAndHeight" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	<Window.Resources>
		<Thickness x:Key="ButtonStyle">0,10,8,8</Thickness>
		<ObjectDataProvider x:Key="ResourcesDS" d:IsDataSource="True" ObjectType="{x:Type properties:Resources}"/>
	</Window.Resources>

    <Window.CommandBindings>
        <CommandBinding Command="{x:Static control:ReadOnlyChannelControlWindow.OkCommand}"
            Executed="Ok" CanExecute="OkCanExecute"/>
        <CommandBinding Command="{x:Static control:ReadOnlyChannelControlWindow.ApplyCommand}"
            Executed="Apply" CanExecute="IsDirty"/>
    </Window.CommandBindings>

    <Grid>
        <Grid.ColumnDefinitions >
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="40"/>
		</Grid.RowDefinitions>

        <Label x:Name="channelsDescription" Grid.ColumnSpan="6"/>
        <Label Grid.ColumnSpan="6" Grid.Row="1" Content="{x:Static properties:Resources.ReadOnlyChannelControlWindowWarningLabel}"/>
        <control:ReadOnlyChannelControl x:Name="readOnlyChannelControl" Grid.Row="2" Grid.ColumnSpan="6"/>

		<Button Grid.Row="3" Grid.Column="3" Margin="{DynamicResource ButtonStyle}" Command="{x:Static control:ReadOnlyChannelControlWindow.OkCommand}" x:Name="okButton" Content="{x:Static properties:Resources.OkButton}" IsDefault="True"/>
		<Button Grid.Row="3" Grid.Column="4" Margin="{DynamicResource ButtonStyle}" Content="{x:Static properties:Resources.CancelButton2}" IsCancel="True"/>
		<Button Grid.Row="3" Grid.Column="5" Margin="{DynamicResource ButtonStyle}" Command="{x:Static control:ReadOnlyChannelControlWindow.ApplyCommand}" Content="{x:Static properties:Resources.ReadOnlyChannelControlWindowApplyButton}"/>
    </Grid>

</Window>
